﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Softyum.ForexAgent
{
    class NewsManager
    {
        private LinkedList<string> newsList = new LinkedList<string>();

        public void Add(string news)
        {
            newsList.AddFirst(news);
        }

        public bool Exist(object obj)
        {
            return newsList.Find(obj as string) != null;
        }

        public bool IsNew(string news)
        {
            return !Exist(news);
        }
    }
}
